{template 'common/header'}
{template 'common/slide'}
<style>
	body{font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};color:{$_W['styles']['fontcolor']};padding:0;margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#DDD{else}{$_W['styles']['indexbgcolor']}{/if};{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:45%; margin:2% 1%;}
	.box .box-item{display:block; height:55px; overflow:hidden; line-height:55px; text-decoration:none; color:#fff; border-radius:0.25em; margin-bottom:1px;
		background:-webkit-linear-gradient(#f0f4f4 0%,#f0f4f4 56%,#f0f3f3 57%,#d2d6d6 100%);
	}
	.box .box-item:nth-child(1){background:-moz-linear-gradient(#fc5d57 0%,#fc5d57 65%,#fa5d57 66%,#db514c 100%)}
	.box .box-item:nth-child(2){background:-moz-linear-gradient(#8d507a 0%,#8d507a 65%,#8b507a 66%,#7b466a 100%);}
	.box .box-item:nth-child(3){background:-moz-linear-gradient(#38799f 0%,#38799f 65%,#38799d 66%,#31698a 100%)}
	.box .box-item:nth-child(4){background:-moz-linear-gradient(#59b7c1 0%,#59b7c1 65%,#59b5bf 66%,#4da0a8 100%);}
	.box .box-item:nth-child(5){background:-moz-linear-gradient(#6abc8c 0%,#6abc8c 65%,#6aba8a 66%,#5da57b 100%)}
	.box .box-item:nth-child(6){background:-moz-linear-gradient(#676f7f 0%,#676f7f 65%,#656d7d 66%,#5b6170 100%)}
	.box .box-item i{width:20%; height:55px; line-height:55px; color:#CDCDCD; text-align:center;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; display:block; overflow:hidden; width:60%; margin-left:10px;}
	.imgs{width:49%; margin:2% 1%; text-align:center; }
	.imgs a{display:block; width:100%; height:111px; line-height:113px; margin-bottom:1px; border:1px solid #cccccc; overflow:hidden;}
	.imgs a img{display:block; height:110px; margin:0 auto;}
</style>
<div class="clearfix">
	<!--图片展示-->
	<div class="imgs pull-right clearfix">
		{php $num = 0;}
		{data func="site_navs" section="2" item="row"}
		<a href="{$row['url']}">
			{if !empty($row['icon'])}
			<img src="{php echo tomedia($row['icon']);}">
			{else}
			<i class="fa {$row['css']['icon']['icon']} img-circle" style="{$row['css']['icon']['style']}"></i>
			{/if}
		</a>
		{php $num++; if($num > 2) break;}
		{/data}
	</div>
	<div class="box pull-left">
		{php $num = 0;}
		{data func="site_navs" section="1" item="nav"}
		{php if($num == 0) $bg = '-webkit-linear-gradient(#fc5d57 0%,#fc5d57 65%,#fa5d57 66%,#db514c 100%)';}
		{php if($num == 1) $bg = '-webkit-linear-gradient(#8d507a 0%,#8d507a 65%,#8b507a 66%,#7b466a 100%)';}
		{php if($num == 2) $bg = '-webkit-linear-gradient(#38799f 0%,#38799f 65%,#38799d 66%,#31698a 100%)';}
		{php if($num == 3) $bg = '-webkit-linear-gradient(#59b7c1 0%,#59b7c1 65%,#59b5bf 66%,#4da0a8 100%)';}
		{php if($num == 4) $bg = '-webkit-linear-gradient(#6abc8c 0%,#6abc8c 65%,#6aba8a 66%,#5da57b 100%)';}
		{php if($num == 5) $bg = '-webkit-linear-gradient(#676f7f 0%,#676f7f 65%,#656d7d 66%,#5b6170 100%)';}
		<a href="{$nav['url']}" class="box-item clearfix" style="background:{$bg}">
			<i class="fa fa-chevron-right pull-right" style="font-size:15px; font-weight:400;"></i>
			<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
		</a>
		{php $num++; if($num > 5) break;}
		{/data}
	</div>
</div>
{template 'common/footer'}